package com.example.hotelsystm.service;


import com.example.hotelsystm.model.Hotel;
import org.springframework.data.domain.Page;
import java.util.List;

public interface HotelService {
    List<Hotel> getAllHotel();
    void saveHotel(Hotel hotel);

    //通过名字来查询
    List<Hotel> findByRoomContaining(String name);

    Hotel getHotelByid(Long id);
    void deleteHotelByid(Long id);

    Page<Hotel> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection);




}
